﻿using Shinva.Variables.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shinva.Variables.Models
{

    public enum StorageType
    {
    Input,
    Output,
    InOut,
    Static,
    Constant,
    Temp,
    Return,
    NULL
    }
    public class VariablePointer
    {
        public VariablePointer(StorageType type, IPlcMember value)
        {
            Type = type;
            Value = value;
        }

        public IPlcMember Value { get; set; } 
        /// <summary>
        /// 变量的存储类型
        /// </summary>
        public StorageType Type { get; }
    }
}
